package com.igeek.ch01;

/**
 * TODO
 *
 * @author xuxin
 * @since 2024/5/20
 */

//@Component(value = "stu")
public class Student {
    private String name;
    private String passWord;


    public Student() {
    }

    public Student(String name, String passWord) {
        this.name = name;
        this.passWord = passWord;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return passWord
     */
    public String getPassWord() {
        return passWord;
    }

    /**
     * 设置
     * @param passWord
     */
    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String toString() {
        return "Student{name = " + name + ", passWord = " + passWord + "}";
    }
}
